package com.example.cloud.consume.order.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 应用配置类
 *
 * @author frank
 * @create 2020-11-26 16:20
 **/
@Configuration
public class ApplicationContextConfig {

    /**
     * Rest服务的客户端模板工具集
     * @return
     */
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

}
